package demo.value;

/**
 *	Generated from IDL definition of valuetype "Node"
 *	@author orbas IDL compiler 
 */

public abstract class Node
	implements org.omg.CORBA.portable.StreamableValue
{
	private String[] _truncatable_ids = {"IDL:demo/value/Node:1.0"};
	public int id;
	public demo.value.Node next;
	public void _write (org.omg.CORBA.portable.OutputStream os)
	{
		os.write_long(id);
		((org.omg.CORBA_2_3.portable.OutputStream)os).write_value (next );
	}

	public void _read (final org.omg.CORBA.portable.InputStream os)
	{
		id=os.read_long();
		next=(demo.value.Node)((org.omg.CORBA_2_3.portable.InputStream)os).read_value ("IDL:demo/value/Node:1.0");
	}

	public String[] _truncatable_ids()
	{
		return _truncatable_ids;
	}
	public org.omg.CORBA.TypeCode _type()
	{
		return demo.value.NodeHelper.type();
	}
}
